package com.by.utils;

import com.by.constants.ThumbConstant;

/**
 * @author lzh
 */
public class RedisKeyUtils {

    /**
     * 获取用户点赞键
     *
     * @param userId 用户ID
     * @return 用户点赞键
     */
    public static String getUserThumbKey(Long userId) {
        return ThumbConstant.USER_THUMB_KEY_PREFIX + userId;
    }

    /**
     * 获取临时点赞记录键
     *
     * @param time 时间
     * @return 临时点赞记录键
     */
    public static String getTempThumbKey(String time) {
        return ThumbConstant.TEMP_THUMB_KEY_PREFIX.formatted(time);
    }
}
